import { del, get, post } from '../../../config/axios'
import { IResponse } from '../../../config/axios/type'
import { loginData } from '../../store/userStore/types'

enum LOGIN_URL {
  LOGIN = '/user/login',
  LOGOUT = '/user/logout'
}

export default {
  login: async (data: loginData) => post<IResponse>({ url: LOGIN_URL.LOGIN, data }),
  logout: async () => get<IResponse>({ url: LOGIN_URL.LOGOUT })
}
